package secondStage.part5.多线程.多线程的实现方式一;

/**
 * @ClassName: [MyThread1]
 * @Description:
 * @Author: [黄劲松]
 * @CreateDate: [2021-04-05]
 * @Version: [v1.0]
 */
public class MyThread1 extends Thread {
    public MyThread1() {
    }

    public MyThread1(String name) {
        super(name);
    }

    @Override
    public void run() {//重写run()方法
        for (int i = 0; i < 40; i++) {
            System.out.println(getName()+":"+i);
        }
    }
}
